﻿using System;
using Sanelib.Dto.ApiRequests;

namespace Dto.ApiRequests.MemberForms
{
    public class MemberLookupForm : FormBase
    {
        public Guid? MemberId { get; set; }
        public string TagId { get; set; }

        public string Code { get; set; }

        public override string GetCommandValue()
        {
            return string.Format("{0}-{1} {2} [{3}]", base.ToString(), MemberId, TagId, Code);
        }

        public override string GetApiAddress()
        {
            return string.Format("/membercard?memberid={0}&amp;code={1}&amp;tagid={2}", MemberId, Code, TagId);
        }
    }
}